// 关接口

import { baseUrl, Get, Post } from '../server'

const severName = 'bigdata/api/' // 服务前缀名
const newBaseUrl = baseUrl + severName

// 全球业绩坐标点 (高飞单独提供)
const getAllPointList: any = (params: any) => {
  const url = baseUrl + 'base/kmScope/tree/1'
  return Get(url, params)
}

// 获取初始化地球信息 http://yapi.tiens.com/project/550/interface/api/32919
const getInitEarthInfo: any = (params: any) => {
  // const url ='https://saas-mgr-dev2.tiens.com.cn/bigdata/api/coordinate/earthinfo'
  const url = newBaseUrl + 'coordinate/earthinfo'
  // const url = 'https://yapi.tiens.com/mock/550/coordinate/earthinfo'
  return Post(url, params)
}

// 获取日期信息 http://yapi.tiens.com/project/550/interface/api/33127
const getInitDateInfo: any = (params: any) => {
  // const url = 'https://saas-mgr-dev2.tiens.com.cn/bigdata/api/basic/dateinfo'
  const url = baseUrl + 'bigdata/api/basic/dateinfo'
  return Get(url, params)
}
export const dataApi: any = {
  getAllPointList,
  getInitEarthInfo,
  getInitDateInfo,
}
